<?php
//发表留言数据
require("db_conn.php");

//第三步  执行SQL语句
//获取用户的留言信息
//获取地址栏留言的id
  $bbsid=$_GET['id']; 


  $sql="delete from t_message where id='$bbsid'";


$rs=$mysqli->query($sql);

if ($rs)
{
   
  // header("Location:getbbs.php");
   echo "<script language='javascript' type='text/javascript'>";
   echo "alert('删除成功');";
   echo "window.location.href='showlist.php';";
   echo "</script>";
   exit;
}
else
{
   echo "删除失败！";
   exit;
}
